﻿using AlibabaCloud.OpenApiClient.Models;
using Easy.Cloud.Communication.Sms.Ali.Options;
using Easy.Cloud.Communication.Sms.Client.Provider;
using Easy.Cloud.Communication.Sms.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Easy.Cloud.Communication.Sms.Ali
{
    public static class SmsServiceCollectionExtensions
    {
        /// <summary>
        /// Uses the SERedis provider (read config from configuration file).
        /// </summary>
        /// <param name="options">Options.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="name">The name of this provider instance.</param>
        /// <param name="sectionName">The section name in the configuration file.</param>
        public static IServiceCollection AddSmsClientProvider(this IServiceCollection services)
        {
            services.AddScoped<ISmsClientProviderFactory, SmsClientProvider>();

            return services;
        }
    }
}
